FROM debian:13.2-slim
LABEL author=xiaoyilin
LABEL email=406735078@qq.com
ENV TZ=Asia/Shanghai
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources && \
apt-get update && apt-get install -y curl && curl https://clickhouse.com/ | sh && \
apt-get remove -y curl && apt-get autoremove -y && apt-get autoclean && rm -rf /var/lib/apt/lists/*
CMD ["./clickhouse","server"]
#Download the binary
#curl https://clickhouse.com/ | sh
#Start the server
#./clickhouse server
#Start the client
#./clickhouse client
# ./clickhouse server -V
# docker build -t registry.cn-hangzhou.aliyuncs.com/xiaoyilin/ck:25.11.1.555 .
# docker run -d registry.cn-hangzhou.aliyuncs.com/xiaoyilin/ck:25.11.1.555
# docker push registry.cn-hangzhou.aliyuncs.com/xiaoyilin/ck:25.11.1.555